package com.tongda.core.enums;

public enum BillStatusEnum {
	NOT_PLACE_ORDER("1", "未下单"), PLACE_ORDER("2", "已下单"),
	// 在移动终端显示为已完结
	SETTLE("3", "已结账"),
	// 在移动终端显示为已下单
	RESETTLE("4", "反结账"),
	// CREDIT_BILL("5","挂账"),
	// WAIT_CALL("7","等叫"),
	// 在移动终端显示为已完结
	CANCEL_BILL("8", "撤单"),
	// 在移动终端显示为已下单
	SOME_PLACE_ORDER("9", "部分下单"),
	// 已并台在移动终端显示为已完结
	BING_TAI("10", "已并台");

	public final static String enumCode = "BillStatus";
	public final static String enumName = "账单状态";
	private String code;
	private String desc;

	BillStatusEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public static String getDesc(String code) {
		for (BillStatusEnum status : BillStatusEnum.values()) {
			if (status.getCode().equalsIgnoreCase(code)) {
				return status.getDesc();
			}
		}
		return "";
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
